package com.atguigu.gmall.common.feign.seckill.fallback;/*
 * @author: XueYouPeng
 * @time: 23.8.2 下午 9:07
 */

import com.atguigu.gmall.common.feign.seckill.SeckillFeignClient;
import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.common.result.ResultCodeEnum;
import com.atguigu.gmall.order.entity.OrderInfo;
import com.atguigu.gmall.seckill.entity.SeckillGoods;

import java.util.List;

public class SeckillFeignClientFallback implements SeckillFeignClient {
    @Override
    public Result<List<SeckillGoods>> findAll() {
        return Result.build(null , ResultCodeEnum.SUCCESS) ;
    }

    @Override
    public Result<SeckillGoods> findBySkuId(Long skuId) {
        return Result.build(null , ResultCodeEnum.SUCCESS) ;
    }

    @Override
    public Result<OrderInfo> findOrderInfoBySkuId(Long skuId) {
        return Result.build(null , ResultCodeEnum.SUCCESS) ;

    }
}
